

local mt = ac.skill['冰霜新星']
mt.temp = '攻击触发'
mt.effectArt = [[f6cf7c6fe0ce0feadbd55aa61aeb73dc.mdx]]

function mt:on_run(hero,target)
    local hero = self.owner
    local damage = hero:get('攻击') * self.data1/100
    local point = target:get_point()
    point:effect{
        model = self.effectArt,
        size = 2.5,
    }:remove()
    hero:aoe_damage(point,350,damage,self)
end


local mt = ac.skill['奥术光环']

function mt:on_add()
    local hero = self.owner
    self:gc(hero:add('智力成长',self.data2))
    self:gc(hero:add_buff '光环'{
        model = [[war3mapImported\GlowingAura.mdl]],
        buff_name = '奥术光环',
        buff_data = {data1 = self.data1},
        area_type = 'ally',
        aura_area = 3000,
    })
end

local buff = ac.buff['奥术光环']
buff.cover_type = 1
buff.cover_max = 1
buff.data1 = 0
buff.data2 = 0
buff.model = [[Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl]]

function buff:on_add()
    local hero = self.owner
    self:gc(hero:add_effect(self.model,'origin'))
    self:gc(hero:add('魔法恢复',self.data1))
end



